import request from '@/utils/request'
export function login(data) {
  return request({
    url: '/xiandu/admin/v1/account_login',
    method: 'post',
    data
  })
}

export function getInfo(data = {}) {
  return request({
    url: 'xiandu/admin/v1/get_userinfo_bytoken',
    method: 'post',
    data
  })
}

export function logout(data) {
  return request({
    url: '/xiandu/admin/v1/login_out',
    method: 'post',
    data
  })
}
